package com.niiwoo.civet.account.service.dubbo.lend;

import com.alibaba.dubbo.config.annotation.Service;
import com.niiwoo.civet.account.dto.request.LendSuccessAccountingRequestDTO;
import com.niiwoo.civet.account.dto.response.LendSuccessAccountingResponseDTO;
import com.niiwoo.civet.account.service.lend.ProjectLendAccountingDubboService;
import com.niiwoo.civet.account.service.local.lend.ProjectLendAccountingLocalService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 标的放款记账服务
 * @author liaojunjun
 *
 */
@Service(version = "1.0.0")
public class ProjectLendAccountingDubbolServiceImpl implements ProjectLendAccountingDubboService {
	
	@Autowired
	private ProjectLendAccountingLocalService projectLendAccountingLocalService;

	@Override
	public LendSuccessAccountingResponseDTO lendSuccessAccounting(LendSuccessAccountingRequestDTO requestDTO) {
		return projectLendAccountingLocalService.lendSuccessAccounting(requestDTO);
	}

	@Override
	public LendSuccessAccountingResponseDTO queryLendSuccessAccounting(Long projectId){
		return projectLendAccountingLocalService.queryLendSuccessAccounting(projectId);
	}
}
